import numpy as np
array=np.array([[1,2,3], #将二维列表转换为数组
               [4,5,6],
               [7,8,9]])
print(array)
print("number of dim",array.ndim)#数组的维度 2维
print("shape ",array.shape)#数组的型状 3行3列
print("size ",array.size)#数组的大小 9